C1.WPF Namespace > Extensions Class > SetBinding Method : SetBinding<T>(FrameworkElement,DependencyProperty,T,Expression<Func<T,Object>>,IValueConverter) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Sub SetBinding(Of T)( _ ByVal target As FrameworkElement, _ ByVal dp As DependencyProperty, _ ByVal source As T, _ ByVal expr As Expression(Of Func(Of T,Object)), _ ByVal converter As IValueConverter _ )
'Usage
Dim target As FrameworkElement Dim dp As DependencyProperty Dim source As T Dim expr As Expression(Of Func(Of T,Object)) Dim converter As IValueConverter Extensions.SetBinding(Of T)(target, dp, source, expr, converter)
[Extension()] public static void SetBinding<T>( FrameworkElement target, DependencyProperty dp, T source, Expression<Func<T,object>> expr, IValueConverter converter )
[Extension()] public: static void SetBindinggeneric<typename T> ( FrameworkElement^ target, DependencyProperty^ dp, T^ source, Expression<Func<T^,Object^>^>^ expr, IValueConverter^ converter )
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2